<template>
	<view class="mian">
		<!-- #ifdef MP-WEIXIN -->
		<navbar :bgColor="bgColor" :btnColors='btnColor' :title="type==1?'修改昵称':'手机号'" :isGoBack="true" :isNotice="true" :visible="true" ></navbar>
		<!-- #endif -->
		<view class="member">
			<u--input
			    placeholder="请输入内容"
			    border="bottom"
			    clearable
				v-model="value"
			  ></u--input>
			<view class="mt-15" style="font-size: 28rpx;color: #999999;" v-if="type==1">
				昵称限中文,英文,数字及其组合
			</view>
		</view>
		<view class="submit" @click="dosignup()">
			<view class="btnsub wrap">
				保存
			</view>
		</view>	  
	</view>
</template>

<script>
	export default {
		data () {
			return {
				...getApp().globalData.config,				
				type:'1',
				value:'',
				val:'',
			}
		},
		onLoad(options) {
			this.type=options.type
			this.val=options.val
		},
		methods:{
			...getApp().globalData.function,
			dosignup(){
				let value=this.value
				this.$routers.router('/pages/pagesuser/member_set/member_base?type='+this.type+"&value="+this.value+'&val='+this.val,'redirectTo') 
			}
		}
	}
</script>

<style>
	page{
		background-color: #fff;
	}
	.member{
		display: flex;
		flex-direction: column;
		padding-left: 30rpx;
		padding-right: 30rpx;
		padding-top: 20rpx;
	}
	.submit{
		width: 100%;
		position: fixed;
		bottom: 0px;
		height: 90px;
		padding: 12px;
		box-sizing: border-box;
		background: #fff;
		
	}
	.btnsub{
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 16px;
		color: #fff;
		background: #3484E6;
		border-radius: 62rpx;
		height: 44px;
	}
</style>